import { Module } from '@nestjs/common';
import { AppController } from './app.controller';
import { AppService } from './app.service';
import { ChatController } from './chat/chat.controller';
import { UserModule } from './user/user.module';
import { TypeOrmModule } from '@nestjs/typeorm';
import { MYSQL_CONFIG } from '../.config/database';

@Module({
  imports: [TypeOrmModule.forRoot(MYSQL_CONFIG),
    UserModule],
  controllers: [AppController, ChatController],
  providers: [AppService],
})
export class AppModule { }
